import React from 'react'
import axios from 'axios'
import { useEffect, useState } from 'react'


const All = () => {
    const [data, setdata] = useState([]);
    useEffect(() => {
        axios("/tyj/all").then((res) => {
            setdata(res.data);
        })
    }, []);
    return (
        <div>
            {data.map((el)=>{
                return <div>
                    <img src={el.logo} alt="" />
                    <p>{el.brandName}</p>
                </div>
            })}
        </div>
    )
}

export default All